﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Erostonenes
{
    class Problem13
    {

        public static void run()
        {
            Int64[] lista = new Int64[100];
            lista[0] = 371072875339021;
            lista[1] = 463769376774900;
            lista[2] = 743249861995247;
            lista[3] = 919422133635741;
            lista[4] = 230675882075393;
            lista[5] = 892616706966236;
            lista[6] = 281128798128499;
            lista[7] = 442742289174325;
            lista[8] = 474514457360013;
            lista[9] = 703864861058430;
            lista[10] = 621764571418565;
            lista[11] = 649063524627419;
            lista[12] = 925758677183372;
            lista[13] = 582035653253593;
            lista[14] = 801811993848262;
            lista[15] = 353986643728271;
            lista[16] = 865155060062958;
            lista[17] = 716938887077154;
            lista[18] = 543700705768266;
            lista[19] = 532826541087568;
            lista[20] = 361232725250002;
            lista[21] = 458765761724109;
            lista[22] = 174237069058518;
            lista[23] = 811426604180868;
            lista[24] = 519343254517283;
            lista[25] = 624672216484350;
            lista[26] = 157324443869081;
            lista[27] = 550376875256787;
            lista[28] = 183363848253301;
            lista[29] = 803862875928784;
            lista[30] = 781828337579931;
            lista[31] = 167263201004368;
            lista[32] = 484030981290777;
            lista[33] = 870869875513927;
            lista[34] = 599594068957565;
            lista[35] = 697939506796526;
            lista[36] = 410526847082990;
            lista[37] = 653786073615010;
            lista[38] = 358290353174347;
            lista[39] = 949537597651053;
            lista[40] = 889028025717332;
            lista[41] = 252676802760780;
            lista[42] = 362702185404977;
            lista[43] = 240744869082311;
            lista[44] = 914302881971032;
            lista[45] = 344130655780161;
            lista[46] = 230530811728164;
            lista[47] = 114876969321549;
            lista[48] = 637832994906362;
            lista[49] = 677201869716985;
            lista[50] = 955482553002635;
            lista[51] = 760853271322857;
            lista[52] = 377742425354112;
            lista[53] = 237019132757256;
            lista[54] = 297988602722583;
            lista[55] = 184957014548792;
            lista[56] = 382982037830314;
            lista[57] = 348295438291999;
            lista[58] = 409579530664052;
            lista[59] = 297461521855023;
            lista[60] = 416981162220729;
            lista[61] = 624679571944012;
            lista[62] = 231897067725479;
            lista[63] = 861880882258753;
            lista[64] = 113067397083047;
            lista[65] = 829591747671403;
            lista[66] = 976233310448183;
            lista[67] = 428462801835170;
            lista[68] = 551216035469812;
            lista[69] = 322381957343293;
            lista[70] = 755061649651847;
            lista[71] = 621778427521926;
            lista[72] = 329241857071473;
            lista[73] = 995186714302352;
            lista[74] = 732674608005915;
            lista[75] = 768418225246744;
            lista[76] = 971426179103425;
            lista[77] = 877836461827993;
            lista[78] = 108488025216746;
            lista[79] = 713296124747824;
            lista[80] = 621840735723997;
            lista[81] = 666278919814880;
            lista[82] = 606618262936828;
            lista[83] = 857869440895529;
            lista[84] = 660243964099053;
            lista[85] = 649139826800329;
            lista[86] = 167309393198727;
            lista[87] = 948093772450487;
            lista[88] = 786391670211874;
            lista[89] = 153687137119366;
            lista[90] = 407899231155355;
            lista[91] = 448899115014406;
            lista[92] = 415031288803395;
            lista[93] = 812348806732101;
            lista[94] = 826165707739483;
            lista[95] = 229188020587773;
            lista[96] = 771585425020165;
            lista[97] = 721078384350691;
            lista[98] = 208496039801340;
            lista[99] = 535035342264725;
            Int64 sum = 0;
            for (int i = 0; i < 100; i++)
            {
                sum += lista[i];
            }
            Console.WriteLine(sum.ToString().Substring(0, 10));
            Console.WriteLine(sum);
        }


        

    }
}
